<template>
	<view class="p20" style="padding-top:0;">
		<view v-if="show_main" class="p20" style="line-height: 180%;"><!--加载完成后显示-->
			<rich-text :nodes="result.cn_content1"></rich-text>
		</view><!--加载完成后显示-->
		<loading :loading="not_load"/><!--加载状态-->
	</view>
</template>

<script setup>
import { onLoad, onShow, onHide, onReachBottom, onPullDownRefresh } from '@dcloudio/uni-app';
import { ref } from 'vue';	
const show_main=ref(false);
const page_load=ref(false);
const not_load=ref(false);
const next_page=ref('');
const result=ref({});
onLoad(()=>{
	loadPage({},false);
});
onShow(()=>{
	
});
onHide(()=>{
	
});
/**
 * 加载接口数据
 * @param {Object} options  参数,对像数组
 * @param {Object} isPage   是否加载大于1页
 */
const loadPage=async (options,isPage)=>{
	let ret = await uni.$get('/appapi-article-accord',options);
	not_load.value=true;
	if(ret.error_code != 0){
		uni.$utils.showToast(ret.info);
		return;
	}
	show_main.value=true;
	result.value=ret.data;
	
};
//上拉触底加载分页
onReachBottom(()=>{
	if (!next_page.value) return;
	if (page_load.value) return;
	page_load.value=true;
	setTimeout(()=>{
	  loadPage(next_page.value, true); 
	},2000);
});
</script>

<style lang="scss">
	 page{}
     .account_list{
		 width: 98%;
		 min-height: 140rpx;
		 border-radius: 8px;
		 background: #fff;
		 text-align: left;
		 margin: 0 auto;
		 margin-top: 20rpx;
		 
	 }
	.details_bot{
			 width: 100%;
			 position: fixed;bottom:0;
			 left:0;height: 140rpx;
			 background: #fff;
			 z-index:9999;
	}
	.details_collect{
		width:270rpx;
		line-height: 90rpx;
		font-size: 40rpx;
	}
	.my_submit{
		 width:400rpx;
		 height: 90rpx;
		 font-size: 32rpx;
		 background: #01b9b7;
	}
</style>
